<?php
try{
?>
<div  class="box" id="post-view">
    <div class="b-title">
        <h4>Tin tức</h4>
    </div>
    <div class="b-container">
    <?php
    
    if(isset($this->articles) && count($this->articles) > 0){
        foreach($this->articles as $article){
            $arrImages = explode("@", $article->feature_image);
            
    ?>
        <div class="news">
            <img src="<?php if($arrImages[0] != "") echo PUBLIC_URL.'/plugins/phpThumb/phpThumb.php?src='.$arrImages[0].'&amp;w=100&amp;h=100'?>" alt=""/>
            <h3><a href="<?php echo $this->url(array("slug" => $article->slug), "post_view");?>"><?php echo $article->title;?></a></h3>
            <p><?php echo $article->summary;?></p>
            <a class="readmore" href="<?php echo $this->url(array("slug" => $article->slug), "post_view");?>">&raquo;Xem tiếp</a>
            <div class="clearfix"></div>
        </div>
    <?php
        }
    }
    ?>
        
    </div>
</div>
<?php
echo $this->paginationControl($this->articles,
                                    'Sliding',
                                    'post/pagination.phtml');

}catch(Exception $ex){
    $ex->getTraceAsString();
}
?>
